how to write exponential functions from a table